<?php
   	include_once('class/autoload.php');

	$site = new page_user ('Utilisateurs autorisés');
	$site->titre = "2TSSIOD - SLAM4 TP2 suite Les users";
	$site->corps = $site->affiche_droit();
	$site->corps = $site->corps .''.$site->affiche_contenu();
	$site->corps = $site->corps .'<form method="POST" id="formulaire">
<p>Prix <input type="text" name="prix"  size="20" onblur="calculvente()"></p>
<p>Quantité <input type="text" name="qte" value="1" size="20" onblur="calculvente()"></p>
<p>Vente <input type="text" name="vente" id="vente" size="20" ></p>
<p><input type="submit" value="Envoyer" name="B1"></p>
</form>
			<style type="text/css">
@-webkit-keyframes fadein {
    from { opacity: 0; }
      to { opacity: 1; }
}

@keyframes fadein {
    from { opacity: 0; }
      to { opacity: 1; }
}
@-webkit-keyframes fadeoff {
    from { opacity: 1; }
      to { opacity: 0; }
}

@keyframes fadeoff {
    from { opacity: 1; }
      to { opacity: 0; }
}
p {
 color: blue;
 text-decoration: underline;
 cursor:  pointer;
 }
.on {

-webkit-animation: fadein 2s;
    animation: fadein 2s;
display:block;
}
.off1
{
-webkit-animation: fadeoff 2s;
    animation: fadeoff 2s;
}
.off {

display:none;
}
</style>
</body>
<div id="article">

<p onclick="accordeon(this);">premier article</p>
<div  class="on">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum 
</div>
<p onclick="accordeon(this);" >deuxieme article</p>
<div  class="on">
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." 
</div>
<p onclick="accordeon(this);" >troisieme article</p>
<div  class="on">
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." 
</div>
</div>
			';
	
	$site->affiche();
?>